﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="Sponge.CustomActions.MultiApprove" Location="CommandUI.Ribbon" RegistrationType="List" RegistrationId="101">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Workflow.Controls._children">
          <Button
            Id="Ribbon.Document.Actions.SPListItemMultiApprove"
            Command="MultiApprove"
            Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
            Image16by16Top="-32"
            Image16by16Left="0"
            Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
            Image32by32Top="0"
            Image32by32Left="-96"
            LabelText="Approve Item(s)"
            Sequence="200"
            TemplateAlias="o1"
            ToolTipTitle="Approve Item(s)"
            ToolTipDescription="Approves the selected item(s)." />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="MultiApprove"
                          CommandAction="javascript: sponge.actions.multiApproveItems();"
                          EnabledScript="javascript: (SP.ListOperation.Selection.getSelectedItems().length >= 1);"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>

